package bean;

import annotation.Id;
import annotation.Table;

@Table(name = "ordonnance")
public class Ordonnance extends RmiBean {

	@Id
	private Integer id;
	private Integer idPatient;
	private Integer idMedecin;
	private String date;

	public Ordonnance() {
		this.idPatient = null;
		this.idMedecin = null;
		this.date = null;
	}

	public Integer getIdPatient() {
		return idPatient;
	}

	public void setIdPatient(Integer idPatient) {
		this.idPatient = idPatient;
	}

	public Integer getIdMedecin() {
		return idMedecin;
	}

	public void setIdMedecin(Integer idMedecin) {
		this.idMedecin = idMedecin;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return id;
	}

	public String toString() {
		return "Ordonnance [id=" + id + ", idPatient=" + idPatient
				+ ", idMedecin=" + idMedecin + ", date=" + date + "]";
	}
	
}
